
const appData = getApp();
Page({
  data: {
    url: '/assets/images/common/icon-activity1.png',
    userInfo: appData.userInfo
  },
  onLoad(options) {
    this.getTabBar().init('mine');
    this.setData({ userInfo: appData.userInfo })
  },
  onReady() {

  },
  onShow() {

  },
  onHide() {

  },
  gotoOther(e) {
    const { url } = e.currentTarget.dataset
    console.log(`${url}`);
    wx.navigateTo({ url: `${url}` })
  },
  onTapLogOut() {
    wx.clearStorageSync()
    wx.switchTab({ url: '/pages/home/home' })
  },
})